﻿@model csharp_Movies_315.Models.TodoHomeVm
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h1>
    @Model.Greeting
</h1>

@Html.ActionLink("Add Todo", "Create", "Todo")

<ul>
    @foreach(var t in Model.Todos){
        <li>            
    @Html.ActionLink("Delete", "Delete", "Todo", new { id = t.TodoId }, new { @class = "btn btn-danger btn-xs" })
    @Html.ActionLink("Update", "Update", "Todo", new { id = t.TodoId }, new { @class = "btn btn-warning btn-xs" })
              
     @t.TodoId - @t.IsCompleted -  @t.Task </li>      
    }
</ul>
